package com.qijian.maindata.domain;

import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.qijian.common.enums.ApprovalDescriptionEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.common.core.domain.BaseEntity;
import org.apache.ibatis.type.StringTypeHandler;

/**
 * 检验结果对象 main_inspection_result
 *
 * @author qijian
 * @date 2022-12-16
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("main_inspection_result")
public class InspectionResult extends BaseEntity{
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "${column.columnComment}")
    private Long id;

    @Excel(name = "来源id")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "来源id")
    private Long sourceId;

    @Excel(name = "检验人id")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "检验人id")
    private Long inspectionUserId;

    @Excel(name = "检验人姓名")
    @ApiModelProperty(value = "检验人姓名")
    private String inspectionNickName;

    @Excel(name = "检验结果")
    @ApiModelProperty(value = "检验结果")
    private Boolean isQualified;

    @Excel(name = "实际检验值")
    @ApiModelProperty(value = "实际检验值")
    @TableField(typeHandler = StringTypeHandler.class)
    private String actualValue;

    @Excel(name = "参数列")
    @ApiModelProperty(value = "参数列")
    private Long paramQty;

    @Excel(name = "备注")
    @ApiModelProperty(value = "备注")
    private String remark;

    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "${column.columnComment}")
    private Long schemeId;

    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "${column.columnComment}")
    private Long examineId;

    private String examineValue;

}
